<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>	
<%@ include file="/pub/front_headmeta.jsp" %>
</head>
<body>
	<div class="top">
		<div class="top-back"><input name="返回" type="button" class="back-botton-left" value="返回" onclick="javascript:history.back();"/></div>
		<div class="top-word">历史记录</div>
		<div class="top-bottom-right"></div>
	</div>
	<div id="listTable" class="middle"></div>
</body>
</html>
<script type="text/javascript">
<!--
$(document).ready(function(){
	doQuery();
});
//查询
function doQuery() {
	var url = "${ctx}/msgOrder!getList.action?page=1&pageSize=20"
	$.post(url, $("#queryForm").serialize(), function callback(txt) {
		var json = $.parseJSON(txt);
		if (json.code == 0) {
			$("#listTable").empty();
			$.each(json.info,function(){
				var html = "<div class='h-messages-1'>"+
								"<div class='h-font-3'>"+this.groupNameStr+":</div>"+
								"<div class='h-font-1'>"+this.content+"</div>";
								if(this.alreadySend==true){
									html+="<div class='h-font-2'>已完成</div>";
								}else{
									html+="<div class='h-font-2'>未完成</div>";
								}
								html+="<div class='h-font-4'>请求时间："+formatDate(this.createTime)+"</div>";
								if(this.sendTime){
									html+="<div class='h-font-5'>发送时间："+formatDate(this.sendTime)+"</div>";
								}else{
									html+="<div class='h-font-5'>发送时间：</div>";
								}
							html+="</div>";
				$("#listTable").append(html);
			});
		}
	});
}
//-->
</script>

